package org.spring.qq_chat_java.pojo;



import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.socket.WebSocketSession;





public class SessionBean {
    private WebSocketSession session;
    private String userName;
    private String userId;

    public void setSession(WebSocketSession session) {
        this.session = session;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public SessionBean(WebSocketSession session, String username, String userId) {
        this.session = session;
        this.userName = username;
        this.userId = userId;
    }

    public WebSocketSession getSession() {
        return session;
    }

    public String getUserName() {
        return userName;
    }

    public String getUserId() {
        return userId;
    }

    @Override
    public String toString() {
        return "SessionBean{" +
                "session=" + session +
                ", userName='" + userName + '\'' +
                ", userId='" + userId + '\'' +
                '}';
    }
}

